package com.sc.mockweipo.service;


import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Service;

/**
 * @author sc
 * Created on  2017/12/22
 */
@Service
public class LogListener implements MessageListener{


    @Override
    public void onMessage(Message message) {
        System.out.println("LOG QUEUE ============");
        System.out.println(new String(message.getBody()));
        //写入文件
        System.out.println("======================");
    }
}
